package com.lzhan.day9;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;

import javax.print.attribute.standard.Finishings;

public class DemoThrows {
	public void readFile() throws IOException{
		FileInputStream finput=new FileInputStream(new File("tedxt.txt"));
		byte[] b=new byte[1024];
		finput.read(b);
		System.out.println(new String(b));
		finput.close();
	}
	public static void main(String[] args) {
	
		try {
			new DemoThrows().readFile();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		System.out.println("here");
	}

}
